package designPatterns_demo.mediator_pattern.demo2.after;
/**
 * 
 *
 * Description: 场景类
 *
 * @author zhangxujun
 * @version 1.0
 * <pre>
 * Modification History: 
 * Date         Author			Version     Description 
 * ------------------------------------------------------------------ 
 * 2017年7月6日      zhangxujun       1.0         1.0 Version 
 * </pre>
 */
public class Client {
	public static void main(String[] args) {
		AbstractMediator mediator = new Mediator();
		// 采购人员采购IBM电脑
		System.out.println("**********采购人员采购IBM电脑***********");
		Purchase purchase = new Purchase(mediator);
		purchase.byIBMComputer(100);
		// 销售人员销售IBM电脑
		System.out.println("**********销售人员销售IBM电脑***********");
		Sale sale = new Sale(mediator);
		sale.sellIBMComputer(10);
		// 库管人员管理库房
		System.out.println("**********库管人员管理库房***********");
		Stock stock = new Stock(mediator);
		stock.clearStock();
	}
}
